﻿/**
 * 出生状态
 */

public class StateBorn : IState{
    public void Enter(EntityBase entity, params object[] args){
        
    }

    public void Process(EntityBase entity, params object[] args){
        //播放出生动画
        entity.SetAction(Constants.ActionBorn);
        TimerSvc.Instance.AddTimerTask((int tid) => {
            entity.SetAction(Constants.ActionDefault); 
        }, 500);
    }

    public void Exit(EntityBase entity, params object[] args){
    }
}
